from os import system
import sys
cmd = ["git merge dev", "git branch -D dev", "git push"]
for c in cmd:
    print("执行: " + c)
    if system(c) != 0:
        sys.exit(1)